﻿using Gp.Scripts.Equip;
using UnityEngine;

namespace Gp.Scripts.GUI {
    public abstract class BaseWeaponSlotPart : MonoBehaviour {
        public abstract void Hide();
    }
    
    public class EquipSlotMeleePart : BaseWeaponSlotPart {
        private MeleeWeaponInfo _reference;

        public void Show(MeleeWeaponInfo meleeWeapon) {
            _reference = meleeWeapon;
            this.gameObject.SetActive(true);
        }


        public override void Hide() {
            this.gameObject.SetActive(false);
            _reference = null;
        }
    }
}